var t = require("../common/index.js");
var app = getApp()
Component({
  properties: {
    data: {
      type: Array
    },
    floorIndex: {
      type: Number
    },
    columnCount: {
      type: Number
    },
  },
  data: { imgurl: app.getImgUrl() },
  methods: {
    goLink: function (e) {
      var o = e.currentTarget.dataset, i = o.item, a = i.id, r = o.positionIndex, s = o.timestamp, d = e.currentTarget.offsetTop;
      if (a) {
        var p = this.data.floorIndex;
        (0, t.goLink)({
          type: "goods",
          data: { item : i },
          saOption: {
            componentName: "productList",
            floorIndex: p,
            positionIndex: r,
            timestamp: s,
            offsetTop: d
          }
        });
      }
    }
  }
});